package com.cloudkinto.service.platform.vo.product;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author long
 * @Description 调拨配对
 * @Date 2025/3/14 16:05
 */
@Data
public class AllocatePlatformUpdateReq {

    @ApiModelProperty("平台产品id")
    @NotNull(message = "平台产品id不能为空")
    private Long platformProductId;

    @ApiModelProperty("仓库id")
    @NotNull(message = "仓库id不能为空")
    private Long whId;

    @ApiModelProperty("系统sku")
    @NotNull(message = "系统sku不能为空")
    private List<ProductSysDto> productSysDtoList;

    @Data
    public static class ProductSysDto {
        @ApiModelProperty("sku")
        @NotEmpty(message = "sku不能为空")
        private String sku;

        @ApiModelProperty("配对数量")
        private int qty;
    }
}